﻿using BlazorDemo.DB;
using BlazorDemo.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BlazorDemo.Data
{
    public class StudentService
    {
        //public DataContext dataContext;

        public StudentService()
        {
            //this.dataContext = dataContext;
        }

        public Task<Student[]> GetStudents()
        {
            var task = Task.FromResult(new Student[] { });
            task.Wait(TimeSpan.FromSeconds(3));

            return task;

        }
    }
}
